perform perfunctorily

Translations
выполнять формально
They performed the task perfunctorily.
Они формально выполнили задание.